package com.uneed.api;

import java.util.ArrayList;

public class CategoryApi {
	
  public static Category[] shopTypeList(Category[] paramArrayOfCategory)
  {
    return subCategoryList(paramArrayOfCategory, 0);
  }

  public static Category[] subCategoryList(Category[] paramArrayOfCategory, int paramInt)
  {
    Category[] arrayOfCategory;
    if (paramArrayOfCategory != null)
    {
      ArrayList localArrayList = new ArrayList();
      int j = paramArrayOfCategory.length;
      for (int i = 0; i < j; i++)
      {
        Category localCategory = paramArrayOfCategory[i];
        if (localCategory.parentId() != paramInt)
          continue;
        localArrayList.add(localCategory);
      }
      arrayOfCategory = (Category[])localArrayList.toArray(new Category[localArrayList.size()]);
    }
    else
    {
      arrayOfCategory = null;
    }
    return arrayOfCategory;
  }

  String API_DOMAIN ="";
  public Category[] categoryList(int paramInt)
  {
	  Category[] category = null;

	  return category;
//    return (Category[])getArray(API_DOMAIN + "category.bin?cityid=" + paramInt);
  }


}
